"use strict";
cc._RF.push(module, 'ca75f9v5WdNX6mR6p7GyZrc', 'EmpowerHelper');
// Script/Ssg/Helper/EmpowerHelper.js

"use strict";

cc.Class({
    extends: cc.Component,

    properties: {},

    // LIFE-CYCLE CALLBACKS:

    onLoad: function onLoad() {
        this.node.on('touchstart', function (event) {
            event.stopPropagation();
            return false;
        });

        var self = this;
        WxApiHelper.createUserInfoButton(function (isEmpower) {
            if (isEmpower) {
                UIHelper.showLoaing();
                self.node.active = false;
                WxApiHelper.hideUserInfoButton();
                LoginHelper.login(function () {
                    UIHelper.hideLoaing();
                });
            }
        });
    },
    start: function start() {},


    btnCallback: function btnCallback(target, data) {
        if (data === "empowerBtn") {
            // LoginHelper.login();

        }
    }

    // update (dt) {},
});

cc._RF.pop();